/*
 * Project Name: cms_manager
 * File Name: GoodsItemDao.java
 * Copyright: ZKTeco Corporation 2015
 * Description: TODO 请在此处添加对本文件的描述
 * Creator: Administrator
 * Create Date: 2015年4月20日 上午9:59:39
 */
package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.GoodsItemEntity;
import com.shishuo.cms.vo.GoodsItemEntityVo;


@Repository
public interface GoodsItemDao extends IBaseDAO<GoodsItemEntity, Long>
{
	public List<GoodsItemEntityVo> getAllListVo(@Param("offset") long offset,
			@Param("rows") long rows,@Param("classId") long classId,@Param("orderNum") int orderNum) throws DataAccessException;
	public int getAllListVoCount(@Param("classId") long classId) throws DataAccessException;
	
	
	public List<GoodsItemEntityVo> getSearchListVo(@Param("offset") long offset,
			@Param("rows") long rows,@Param("keyWords") String keyWords,@Param("orderNum") int orderNum) throws DataAccessException;
	public int getSearchListVoCount(@Param("keyWords") String keyWords) throws DataAccessException;
	
	
	public GoodsItemEntityVo getVoById(@Param("goodsId") long goodsId);
	public List<GoodsItemEntityVo> getTopVoByAliasName(@Param("topCount") int topCount,@Param("aliasName") String aliasName);
}
